<?php
class ui_a_reader_iframe extends ui {
	/**
	 *
	 * @param unknown_type $S
	 * @param unknown_type $param = array (
	 * 			reader_id
	 * 			reader_type
	 * )
	 */
	public function __construct($S, $param) {
		parent::__construct();
		
		$data_article = new data_article();
		
		if ($param['reader_type'] == 'rss') {
			$content = $data_article->get_rss_article_content($param['reader_id']);
		} else {
			$content = $data_article->get_save_article_content($param['reader_id']);
		}
		
		$S->assign('content', $content);
	}
}
?>